 <?php
   
      
  require_once "../framework.php"; 
         
      
   
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>snapol Setup, please wait...</title>
<link rel="stylesheet" type="text/css" href="my.css">
</head>
<body>
<p><img src="/snapol/snapol.jpg" width="199" height="100" /></p>
<h1>snapol Setup, please wait...</h1>
  
   <?php
  
        import("compile");
        import("install");
        installCom();
        
 
                         
       $time = microtime(true);
       compileCms();
       
       
       
       /*$html = "<p>hello world</p>";
       $html = fileGetContent("/data/template/index.html");
      // echo $html;
       
       //for ($n=0; $n<100;$n++) {
       
        $domForm = str_get_html($html);
      $n=0;
      
                    // Formular Felder auslesen
    foreach($domForm->find('p') as $eForm) {
    
      
        $n=$n+1;
            // SetFocus
          //if(isset($eForm->setfocus)) {   
             
             
             
             $eForm->id2 = $n;
             $eForm->innertext = "yes.".$eForm->innertext;
             $eForm->outertext = "<?php echo asdf;?>".$eForm->outertext;
         
         }
         
         
      
      //}*/
      
      
      //$html = $domForm->save(); 
     // echo $html;
      
   //   $domForm->clear(); 
   //   unset($domForm);
 
       //}
     
       
       
       
       
       
       
       
       
       
       
       
       $time  =round(microtime(true) - $time, 2);
       flush();
       echo "Cms wurde compiliert. Zeit: $time<br>";   
       
       /*$time = microtime(true);
       compileTemplate();
       $time  =round(microtime(true) - $time, 2);
       echo "Template wurde compiliert. Zeit: $time<br>";   
       flush();*/

        echo '<p><b>Setup abgeschlossen. <a href="/">Weiter</a></b></p>';

?>


</body>
</html>


